<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/supplier/supplierLookUp" onsubmit="return  dwzSearch(this, 'dialog');">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
            <li ><label><@label key='supplier.C,code.C,colon'>供应商编号：</@label></label> <input type="text" name="supplierCode" value="${condition.supplierCode!''}"/></li>
            <li ><label><@label key="supplier.C,description.C,colon">描述：</@label></label> <input type="text" name="supplierText" value="${condition.supplierText!''}"/></li>
                <li style="float:left;width:120px">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>

<div class="pageContent">
    <table class="table border" width="100%" layoutH="110">
        <thead>
            <tr>
                <th width="120" orderField="supplierCode" <#if (page.orderField?? && page.orderField == 'supplierCode')>class="${page.orderDirection!''}"</#if>><@label key='supplier.C,code.C'>供应商编号</@label></th>
                <th width="120" ><@label key='supplier.C,description.C'>供应商描述</@label></th>
                <th width="100"><@label key='contacts.C'>联系人</@label></th>
                <th width="100"><@label key='telephone.C'>联系电话</@label></th>
                <th width="80"><@label key='email.C'>邮件</@label></th>
                <th width="80"><@label key='address.C'>地址</@label></th>
                <th width="80"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as supplier>
            <tr target="material_code" rel="${material.materialCode!''}">
                <td>${supplier.supplierCode!''}</td>
                <td>${supplier.supplierText!''}</td>
                <td>${supplier.contact!''}</td>
                <td>${supplier.telephone!''}</td>
                <td>${supplier.email!''}</td>
                <td>${supplier.address!''}</td>
                <td><a class="btnSelect bringBack" value="{supplierCode:'${supplier.supplierCode!''}', supplierText:'<@json_escape>${supplier.supplierText!''}</@json_escape>'}" ><@label key="select.B">选择</@label></a></td>        
                
            </tr>
            </#list> <#else>
            <tr target="material_code">
                <td colspan="5" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
                </td>
            </tr>
            </#if> <#else>
            <tr target="material_code">
                <td colspan="5" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
</div>